<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ViewMap.ascx.cs" Inherits="cwcare.Modules.cwcareXML.ViewMap" %>
<div id="leftc">
    
    <h3 class="mainhead">
        Our Locations</h3>
    <p>
        Capital Women's Care has offices throughout the DC Metro area. Please <a href="/locateprovider.aspx">
            click here</a> to locate the one most convenient for you.</p>
    <div id="frame_google_map">  
                        <div class="content-nav" style="text-align:center;">
                           
                            <div id="map" style="width: 520px; height: 520px;"></div>	
                        </div> 
                       
                	  </div>  
                      
  <script type="text/javascript" src="js/loadXML.js"></script>                    
                      
<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAARly3fm6XEU8eMHnNOmUBvBQ8nBtCSB8bS4ZZsx1CFwQ2lQ3GxBRV9zcEK49jhMYdxo1wyc8J73nMWw" type="text/javascript"></script>
	<script src="http://www.google.com/uds/api?file=uds.js&amp;v=1.0&amp;key=ABQIAAAARly3fm6XEU8eMHnNOmUBvBQ8nBtCSB8bS4ZZsx1CFwQ2lQ3GxBRV9zcEK49jhMYdxo1wyc8J73nMWw" type="text/javascript"></script>
    <script type="text/javascript" src="js/gmap.js"></script>
    <script type="text/javascript" src="js/kntd_map.js" smarty></script>
<script>
	
 
  

	function goBack() {
    window.history.back();
	}
		xmlDoc=loadXMLDoc("DesktopModules/cwcareXML/GoogleMap/markers.xml");

		x=xmlDoc.getElementsByTagName('marker');
		
		
		var toado = 10;
		 
        //center maps
     	 for (i=0;i<x.length;i++)
		{		
			if(x[i].getAttribute('init') == "true"){
					var _html = "<div align='left' style='width:300px'><img src='/cwcare/portals/_default/skins/cwcare_newskin/images/logo.png'/><br/><b>"+x[i].getAttribute('address')+"</b><br/>"+x[i].getAttribute('telephone')+"</div>"; 
					var map = new GMap2(document.getElementById("map"));       
					map.setCenter(new GLatLng(x[i].getAttribute('lat'),x[i].getAttribute('lng')), toado);
					
					var point = new GLatLng(x[i].getAttribute('lat'),x[i].getAttribute('lng'));
					var marker = createMarker(point,_html)
					marker.openInfoWindowHtml(_html);
					//map.addOverlay(marker);
				map.setUIToDefault();
				map.addControl(new GLargeMapControl());	
			}
		
		} 
		
		for (i=0;i<x.length;i++)
		{		
			
		//document.write();
		//document.write("<br />");
						var point = new GLatLng(x[i].getAttribute('lat'),x[i].getAttribute('lng'));
						var marker = createMarker(point,_html)
						var _html = "<div align='left' style='width:300px'><img src='/cwcare/portals/_default/skins/cwcare_newskin/images/logo.png'/><br/><b>"+x[i].getAttribute('address')+"</b><br/>"+x[i].getAttribute('telephone')+"</div>"; 
						marker.openInfoWindowHtml(_html);
						map.addOverlay(marker);
		} 
      
    </script>

</div>
